projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01695b4
)
(easy-menu-add): Do call x-popup-menu, but only if it's defined.
author
Richard M. Stallman
<rms@gnu.org>
Wed, 21 Apr 2004 19:14:49 +0000
(19:14 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Wed, 21 Apr 2004 19:14:49 +0000
(19:14 +0000)
lisp/emacs-lisp/easymenu.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/easymenu.el
b/lisp/emacs-lisp/easymenu.el
index 88f7657b6bf761e9e21ca39b1100c0e3255b2950..dbd7194f50a4a9fea178355dc3b9c489447a40a7 100644
(file)
--- a/
lisp/emacs-lisp/easymenu.el
+++ b/
lisp/emacs-lisp/easymenu.el
@@
-478,8
+478,8
@@
Do it only if `easy-menu-precalculate-equivalent-keybindings' is on."
(when easy-menu-precalculate-equivalent-keybindings
(if (and (symbolp menu) (not (keymapp menu)) (boundp menu))
(setq menu (symbol-value menu)))
- ;; x-popup-menu does not exist on tty-only Emacs.
-
;; (if (keymapp menu)
(x-popup-menu nil menu))
+ (and (keymapp menu) (fboundp 'x-popup-menu)
+
(x-popup-menu nil menu))
))
(defun add-submenu (menu-path submenu &optional before in-menu)